<div>
    欢迎回来，
    <span id="username"></span>！
    <div class="container">
        <div class="item" onclick="window.$router.to('/user/center')">个人中心</div>

        <div class="item" onclick="window.$router.to('/user/friends')">好友</div>

        <div class="item" onclick="window.$router.to('/user/friendsRedirect')">好友重定向</div>

        <div class="item" onclick="window.$router.changeHash('/home')">退出登录</div>
    </div>

    <div id="router-view-2"></div>
    
</div>


<script>
    (function () {
        let username = new URLSearchParams(window.location.hash.split('?')[1]).get('username')
        jQuery('#username').text(username)
    })()
</script>